<style>
    #id-form th{width: 180px;}
</style>
<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'supplier-form',
	'enableAjaxValidation'=>false,
)); ?>


	<?php echo $form->errorSummary($model); ?>
        <?php echo $this->renderFlash(); ?>

        <fieldset>
            <legend>Contact Supplier Information</legend>
                <table border="0" cellpadding="0" cellspacing="0"  id="id-form">
                    <tr>
                        <th valign="top"><?php echo $form->labelEx($model,'supplier_name'); ?></th>
                        <td><?php echo $form->textField($model,'supplier_name',array('rows'=>6, 'cols'=>50, 'class' => 'inp-form')); ?></td>
                        <td></td>
                    </tr>
                    <tr>
                        <th valign="top"><?php echo $form->labelEx($model,'phone'); ?></th>
                        <td><?php echo $form->textField($model,'phone',array('rows'=>6, 'cols'=>50, 'class' => 'inp-form')); ?></td>
                        <td></td>
                    </tr>
                    <tr>
                        <th valign="top"><?php echo $form->labelEx($model,'email'); ?></th>
                        <td><?php echo $form->textField($model,'email',array('rows'=>6, 'cols'=>50, 'class' => 'inp-form')); ?></td>
                        <td></td>
                    </tr>
                    <tr>
                        <th valign="top"><?php echo $form->labelEx($model,'fax'); ?></th>
                        <td><?php echo $form->textField($model,'fax',array('rows'=>6, 'cols'=>50, 'class' => 'inp-form')); ?></td>
                        <td></td>
                    </tr>
                    <tr>
                        <th valign="top"><?php echo $form->labelEx($model,'address'); ?></th>
                        <td><?php echo $form->textField($model,'address',array('rows'=>6, 'cols'=>50, 'class' => 'inp-form')); ?></td>
                        <td></td>
                    </tr>
                    <tr>
                        <th valign="top"><?php echo $form->labelEx($model,'comment'); ?></th>
                        <td><?php echo $form->textArea($model,'comment',array('rows'=>6, 'cols'=>50, 'class' => 'form-textarea')); ?></td>
                        <td></td>
                    </tr>            
                </table>
        </fieldset>        
   
    <br/>
    
        <fieldset>
            <legend>Contact Person Information</legend>
            <table border="0" cellpadding="0" cellspacing="0"  id="id-form">
            <tr>
                <th valign="top"><?php echo $form->labelEx($model,'contact_person_name'); ?></th>
                <td><?php echo $form->textField($model,'contact_person_name',array('rows'=>6, 'cols'=>50, 'class' => 'inp-form')); ?></td>
                <td></td>
            </tr>
            <tr>
                <th valign="top"><?php echo $form->labelEx($model,'contact_person_phone'); ?></th>
                <td><?php echo $form->textField($model,'contact_person_phone',array('rows'=>6, 'cols'=>50, 'class' => 'inp-form')); ?></td>
                <td></td>
            </tr>
            <tr>
                <th valign="top"><?php echo $form->labelEx($model,'contact_person_email'); ?></th>
                <td><?php echo $form->textField($model,'email',array('rows'=>6, 'cols'=>50, 'class' => 'inp-form')); ?></td>
                <td></td>
            </tr>
            <tr>
                <th valign="top"><?php echo $form->labelEx($model,'contact_person_comment'); ?></th>
                <td><?php echo $form->textArea($model,'fax',array('rows'=>6, 'cols'=>50, 'class' => 'form-textarea')); ?></td>
                <td></td>
            </tr>  
            <tr>
                <th>&nbsp;</th>
                <td valign="top">
                    <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save', array('class' => 'form-submit')); ?>
                </td>
                <td></td>
            </tr>
        </table>
        </fieldset>  

<?php $this->endWidget(); ?>

</div><!-- form -->